package com.zhilei;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * @author 文件上传微服务
 * @serial 2024-09-19
 */
@Slf4j
@SpringBootApplication(scanBasePackages = "com.zhilei", exclude = {DataSourceAutoConfiguration.class})
@EnableDiscoveryClient   // TODO 开启服务注册跟发现.
@EnableAsync // TODO 开启异步任务
public class FileApplication {
    public static void main(String[] args) {
        SpringApplication.run(FileApplication.class, args);
        log.info("文件授权微服务启动成功");
    }
}